package com.walterweimod.auxiliary_attributes.event.new_event;

import net.minecraft.world.entity.LivingEntity;
import net.minecraftforge.event.entity.living.LivingEvent;

public class LivingAbsorptionChangeEvent extends LivingEvent {
    private float amount;

    public LivingAbsorptionChangeEvent(LivingEntity livingEntity, float amount){
        super(livingEntity);
        this.amount = amount;
    }

    public float getAmount() {
        return amount;
    }

    public void setAmount(float amount) {
        this.amount = amount;
    }

    @Override
    public boolean isCancelable() {
        return true;
    }
}
